﻿<env:EditorApplication x:Class="AssemblyAnalyzer.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					 xmlns:kui="xaml://kokomo/ui"
			xmlns:pe="clr-namespace:Kokomo.PeInspector;assembly=Kokomo.PeInspector"
					 xmlns:r="clr-namespace:Kokomo.PeInspector.Reflection;assembly=Kokomo.PeInspector"
					 xmlns:env="xaml://kokomo/environment"
             >
	<Application.Resources>

		<Style TargetType="{x:Type Button}" x:Key="{x:Static ToolBar.ButtonStyleKey}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Border
							Name="Background"
							Padding="3"
							CornerRadius="3"
							>
							<ContentPresenter Name="Content"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Setter TargetName="Background" Property="Background" Value="{DynamicResource {x:Static env:EditorStyleKeys.WorkspaceBackgroundBrushKey}}"/>
								<Setter Property="Foreground" Value="White"/>
							</Trigger>
							<Trigger Property="IsPressed" Value="True">
								<Setter TargetName="Background" Property="Padding" Value="4 4 2 2"/>
							</Trigger>
							<Trigger Property="IsEnabled" Value="False">
								<Setter Property="Opacity" Value="0.25"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

		<Style TargetType="{x:Type TextBox}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type TextBox}">
						<Grid>
							<Border
								UseLayoutRounding="True"
								BorderBrush="Gray"
								BorderThickness="1"
								Margin="3"
								/>
							<ScrollViewer Name="PART_ContentHost" Margin="4"/>
						</Grid>

					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

		<Style TargetType="{x:Type kui:WatermarkAdorner}">
			<Setter Property="Margin" Value="5 0 0 0"/>
		</Style>
		<!--<DataTemplate x:Key="{x:Static kui:WatermarkService.WatermarkTemplateKey}">
			
		</DataTemplate>-->

		<Style TargetType="{x:Type GridSplitter}">
			<Setter Property="Background" Value="Transparent"/>
		</Style>

		<DataTemplate DataType="{x:Type r:MemberViewInfo}">
			<Grid>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="16"/>
					<ColumnDefinition Width="2"/>
					<ColumnDefinition Width="Auto"/>
				</Grid.ColumnDefinitions>
				<Image
					env:ImageHelper.ImageKey="{Binding IconKey}"
					env:ImageHelper.ImageProvider="{x:Static r:AssemblyAnalyzerEditor.MetadataIconProvider}"
					/>
				<TextBlock Grid.Column="2" Text="{Binding Heading}"/>
			</Grid>
		</DataTemplate>
	</Application.Resources>
</env:EditorApplication>
